#include<stdio.h>

void change(unsigned char* s){
int i = 0;
int w = 0;
for(i=100;i>=0;--i){
if(s[i] == 0){
continue;
}else{
s[100-w] = s[i];
s[i] = 0;
++w;
}
}
}

void unchange(unsigned char* s){
int i = 0;
int w = 0;
for(i=0;i<101;++i){
if(s[i] == 0){
continue;
}else{
s[w] = s[i];
s[i] = 0;
++w;
}
}
}

void zero(unsigned char* s){
int i = 0;
for(i=101;i>=0;--i){
s[i] = 0;
}
}

int main(){
unsigned char m[102];
unsigned char n[102];
unsigned char r[102];
int i=0;

zero(m);
zero(n);
zero(r);
scanf("%s %s",m,n);
change(m);
change(n);
for(i=100;i>=0;--i){
if(m[i] == 0 && n[i] == 0){
continue;
}
if(m[i] == 0 || n[i] == 0){
r[i] += m[i] + n[i];
}else{
r[i] += m[i] + n[i] -'0';
}
if(r[i] > '9'){
  r[i] = r[i] - 10;
  r[i-1] += 1; 
}
}
unchange(r);
printf("%s\n",r);
return 0;
}

